package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SetmealService {

    //保存添加的数据
    void save(SetmealDto setmealDto);

    //查看套餐的分页
    R<Page<SetmealDto>> findByPage(Integer page, Integer pageSize, String name);

    @Transactional
    void delectByIds(List<Long> ids);

    //修改套餐售卖状态
    void updateStatusById(List<Long> ids, Integer status);

    //移动端套餐查看
    List<Setmeal> list(Long categoryId, Integer status);
}
